{extend name="layout/goods" /}

{block name="content"}
<!--主体-->
<header class="wy-header">
    <a href="{:url('user/shop_index')}"><div class="wy-header-icon-back"><span></span></div></a>
    <div class="wy-header-title">地址管理</div>
</header>
<div class="weui-content">
    <div class="weui-panel address-box">
        {volist name="address" id="v"}
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_text address-list-box">
                <a href="{:url('address/edit', ['id' => $v['id']])}" class="address-edit"></a>
                <h4 class="weui-media-box__title"><span>{$v.consignee}</span><span>{$v.mobile}</span></h4>
                <p class="weui-media-box__desc address-txt">{$v.area}{$v.address}</p>
                {if condition="$v.is_default eq 1"}
                <span class="default-add">默认地址</span>
                {/if}
            </div>
        </div>
        {/volist}

    </div>
    <div class="weui-btn-area">
        <a class="weui-btn weui-btn_primary" href="{:url('address/add')}" id="showTooltips">添加收货地址</a>
    </div>
</div>
{/block}
